package com.jp.knowledge.adapter.skill;

import android.content.Context;
import android.support.annotation.NonNull;

import com.jp.knowledge.R;
import com.jp.knowledge.model.SkillModel;
import com.jp.knowledge.my.base.RecycleVAdapter;
import com.jp.knowledge.my.base.RecycleVHolder;

import java.util.List;

/**
 * Created by 528787067@qq.com on 2017/4/20.
 */

public class SkillContentAdapter extends RecycleVAdapter<SkillModel.ListsBean.NavsBean> {

    public SkillContentAdapter(Context context, @NonNull List<SkillModel.ListsBean.NavsBean> list) {
        super(context, list);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_skill_content;
    }

    @Override
    public void onBind(RecycleVHolder holder, int position) {
        holder.setTextView(R.id.skill_item_tv, getData(position).getName());
    }
}
